package com.spc.car.web.controller.std;


import com.spc.car.core.framework.web.domain.AjaxResult;
import com.spc.car.data.service.std.StdVocationalQualificationCertificateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 职业资格表 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-04-01
 */
@Api(tags = "个人职业资格")
@RestController
@Validated
@Slf4j
public class StdVocationalQualificationCertificateController {

    @Autowired
    private StdVocationalQualificationCertificateService stdVocationalQualificationCertificateService;

    @ApiOperation(value = "获取个人职业资格列表", notes = "获取个人职业资格列表")
    @GetMapping("/listStdVocationalQualification")
    public AjaxResult listStdVocationalQualificationCertificate(@RequestParam(required = false) String name){
        return AjaxResult.success(stdVocationalQualificationCertificateService.listStdVocationalQualificationCertificate(name));
    }
}

